﻿using System.ComponentModel;

namespace Dora.Tools.Enums.MessageNotice
{

    /// <summary>
    /// 用于接收工作通知消息
    /// </summary>
    public enum DingReceiveMsgType
    {
        /// <summary>
        /// 接收消息者是员工
        /// </summary>
        [Description("员工")]
        userid_list = 1,
        /// <summary>
        /// 接收消息者是部门下的员工
        /// </summary>
        [Description("部门下的员工")]
        dept_id_list = 2,
        /// <summary>
        /// 接收消息者是所有员工
        /// </summary>
        [Description("所有员工")]
        to_all_user = 3
    }

    /// <summary>
    /// 通过钉钉获取部门列表时的排序
    /// </summary>
    public enum DingDeptUserOrderType
    {
        /// <summary>
        /// 默认
        /// </summary>
        normal = 1,
        /// <summary>
        /// 代表按照进入部门的时间升序
        /// </summary>
        entry_asc = 2,
        /// <summary>
        /// 代表按照进入部门的时间降序
        /// </summary>
        entry_desc = 3,
        /// <summary>
        /// 代表按照部门信息修改时间升序
        /// </summary>
        modify_asc = 4,
        /// <summary>
        /// 代表按照部门信息修改时间降序
        /// </summary>
        modify_desc = 5,
        /// <summary>
        /// 代表用户定义(未定义时按照拼音) 排序
        /// </summary>
        custom = 6
    }

    /// <summary>
    /// 钉钉上传文件类别
    /// </summary>
    public enum DingUploadType
    {
        [Description("图片")]
        image = 1,
        [Description("语音")]
        voice = 2,
        [Description("文件")]
        file = 3
    }

    /// <summary>
    /// 钉钉回调事件类型
    /// </summary>
    public enum DingCallbackEventType
    {
        /// <summary>
        /// 用户增加
        /// </summary>
        [Description("用户增加")]
        user_add_org = 1,
        /// <summary>
        /// 用户更改
        /// </summary>
        [Description("用户增加")]
        user_modify_org = 2,
        /// <summary>
        /// 用户离职
        /// </summary>
        [Description("用户离职")]
        user_leave_org = 3,
        /// <summary>
        /// 企业部门创建
        /// </summary>
        [Description("部门创建")]
        org_dept_create = 4,
        /// <summary>
        /// 企业部门修改
        /// </summary>
        [Description("部门修改")]
        org_dept_modify = 5,
        /// <summary>
        /// 企业部门删除
        /// </summary>
        [Description("部门删除")]
        org_dept_remove = 6,
        /// <summary>
        /// 审批任务
        /// </summary>
        [Description("审批任务")]
        bpms_task_change = 7,
        /// <summary>
        /// 审批实例开始
        /// </summary>
        [Description("审批实例")]
        bpms_instance_change = 8,
        /// <summary>
        /// 测试回调接口事件
        /// </summary>
        [Description("测试回调接口")]
        check_url = 9,
    }

}
